package vwg.na.vwm.rh.rhmotor.modelo.daoimpl;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import vwg.na.vwm.rh.rhmotor.modelo.dao.AccionDAO;
import vwg.na.vwm.rh.rhmotor.modelo.dao.GenericDAO;
import vwg.na.vwm.rh.rhmotor.modelo.entidad.Accion;

@Repository
public class AccionDAOImpl extends GenericDAO<Accion> implements AccionDAO {

	@Override
	@Transactional(readOnly=true, propagation = Propagation.REQUIRED)
	public Accion findById(int idAccion) {
		return getHibernateTemplate().get(Accion.class, idAccion);
	}
}
